home *** CD-ROM | disk | FTP | other *** search
- // Scene File: REVOLVE.PI
- // Author: Rob McGregor
-
- // The camera revolves around two stone pillars in the desert
-
- include "..\..\..\colors.inc"
- include "..\..\..\texture.inc"
- include "..\..\..\stones.inc"
-
- // Define the range of the animation
- start_frame 0
- end_frame 59
- total_frames 60
- outfile "rev"
-
- // Give the location of points
- define pi 3.14159265358
- define ang ((2 * pi) / total_frames) * frame
-
- // Define the position of the camera
- define newX 10 * cos(ang)
- define newZ 10 * sin(ang)
- define loc1 <newX, -1.5, newZ>
-
- // Lights
- light <-5, 3, -10>
- light <8, 4, -15>
- light <2, 10, -5>
- directional_light <2, 0, 15>
-
- // Set up the camera
- viewpoint {
- from loc1
- at <0, 0, 0>
- up <0, 1, 0>
- angle 45
- resolution 320, 200
- aspect 1.6
- }
-
- // Set the sky color and add a little haze
- background Grey
- haze 0.98, 25, Grey
-
- // Create some pillars
- define pillar1
- object {
- object {
- cylinder <0, -2.5, 0>, <0, 2.5, 0>, 0.5
- translate <-1.6, -1.2, 0>
- }
- +
- object {
- sphere <-1.6, 1.5, 0>, 1
- }
- Tigers_Eye1 { scale <2, 2, 2> }
- }
- object { pillar1 }
-
- define pillar2
- object {
- object {
- cylinder <0, -2.5, 0>, <0, 2.5, 0>, 0.5
- translate <1.6, -1.2, 0>
- }
- +
- object {
- sphere <1.6, 1.5, 0>, 1
- }
- white_marble { scale <0.25, 0.25, 0.25> }
- }
- object { pillar2 }
-
- // Create a desert wasteland
- define sand_dunes
- texture {
- noise surface {
- color <0.85, 0.75, 0.69>
- normal 2
- frequency 100
- bump_scale 1.5
- ambient 0.37
- diffuse 0.75
- }
- }
- object {
- disc <0, 0, 0>, <0, 1, 0>, 10000
- sand_dunes { scale <92, 92, 92> }
- rotate <0, 10, 0>
- translate <0, -3.5, 0>
- }
-
-
-